package cn.golxen.rsms.mapper;

import cn.golxen.rsms.bean.bo.*;
import cn.golxen.rsms.bean.entity.GoodsMain;
import cn.golxen.rsms.bean.entity.GoodsPurchase;
import cn.golxen.rsms.bean.entity.GoodsStore;
import cn.golxen.rsms.bean.entity.GoodsType;
import cn.golxen.rsms.bean.vo.ResGoodsInfoVo;
import cn.golxen.rsms.bean.vo.ResGoodsSalesAnalysisVo;

import java.util.List;

public interface GoodsMapper {
    ResGoodsInfoVo getGoodsInfo(String code, int storeId);
    List<ResGoodsInfoVo> getGoodsInfoList(int storeId);
    List<GoodsStore> getGoodsInfoList2(int storeId);
    List<GoodsStore> getGoodsStoreList(List<String> codeList,int storeId);
    GoodsStore getGoodsStore(int storeId,String code);
    GoodsMain getGoodsMain(String code);
    List<String> getGoodsCodeList(int storeId);
    List<GoodsMain> getGoodsMainList(List<String> codeList);
    List<BusinessBigDataSelectionBo> getGoodsMainListOnBigDataSelection();
    Double getSuggestedPrice(String code);
    int addGoodsMain(GoodsMain barcodeInfo);
    int addGoodsStore(GoodsStore GoodsInfo);
    int addGoodsStoreList(List<GoodsStore> goodsStoreList);
    String isExGoodsTypeByType(String type);
    int addGoodsType(String type);
    int updateGoodsMainSuggestedPrice(String code);
    List<GoodsType> getGoodsTypeList();
    int delGoodsStoreList(DelGoodsStoreBo delGoodsStoreBo);
    int delGoodsPurchase(List<Integer> idList);
    int updateGoodsPurchase(GoodsPurchase goodsPurchase);
    int updateGoodsStore(GoodsStore goodsStore);
    int updateGoodsStoreList(List<GoodsStore> goodsStoreList,int storeId);
    int addGoodsNum(AddOrOutGoodsNumBo addOrOutGoodsNumBo);
    int addGoodsInventoryList(List<AddOrOutGoodsNumBo> addOrOutGoodsNumBoList,int storeId);
    List<ResGoodsInfoVo> getGoodsInfoListByType(String type,int storeId);
    List<ResGoodsInfoVo> getGoodsInfoByNameOrCode(int store, String nameOrCode);
    List<ResGoodsInfoVo> getNewGoodsStore(int store);

    List<ResGoodsSalesAnalysisVo> getGoodsSalesAnalysisByDayAndCodeList(int day,List<String> codeList,int storeId);

    int addGoodsPurchase(GoodsPurchase goodsPurchase);
    List<GoodsPurchase> getGoodsPurchase(int isDone,int storeId);
    List<ResGoodsSalesAnalysisVo> getGoodsSalesAnalysisByPeriod(BusinessDateBo bo);
    List<BusinessPriceAdjustSuggestBo> getGoodsStoreAndSuggestedPrice(int storeId);
    int delStore(int storeId);



}
